package cn.hiapi.admin.vo;

import cn.hiapi.basic.entity.BasicEntity;
import cn.hiapi.shopkeeper.enums.ActivityType;
import cn.hiapi.shopkeeper.enums.OrderStatus;
import com.alibaba.fastjson.JSONObject;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.persistence.Column;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import java.math.BigDecimal;

/**
 * @author AdinZ
 * @date 2022/12/18 18:21
 */
@Setter
@Getter
public class ActivityOrderVo extends BasicEntity {

    private Long id;


    @ApiModelProperty("店铺资料")
    private Object shop;

    @ApiModelProperty("买家")
    private Object buyer;
    @ApiModelProperty("商品标题")
    private String title;
    @ApiModelProperty("商品图片")
    private String thumb;
    @ApiModelProperty("活动类型")
    private ActivityType activityType;

    @ApiModelProperty("支付金额")
    private BigDecimal payment = BigDecimal.ZERO;

    @ApiModelProperty("喜糖抵扣数量")
    private BigDecimal sugar = BigDecimal.ZERO;

    @ApiModelProperty("优惠金额")
    private BigDecimal discount = BigDecimal.ZERO;

    @ApiModelProperty("原价")
    private BigDecimal costPrice = BigDecimal.ZERO;

    @ApiModelProperty("订单状态")
    private OrderStatus status = OrderStatus.WAIT_PAY;

    @ApiModelProperty("付款信息")
    private String payType;

    @ApiModelProperty("创建时间")
    private long created = System.currentTimeMillis();
    @ApiModelProperty("支付时间")
    private Long payTime;

    @ApiModelProperty("更新时间")
    private long updated = System.currentTimeMillis();

    @ApiModelProperty("买家订单备注")
    private String buyerRemark;

    @ApiModelProperty("转移方向 0 没转增, 1转出,2转入")
    private int giftDirection;

    @ApiModelProperty("转给,转入 用户id")
    private Object giftUser;

    @ApiModelProperty("其他数据")
    private JSONObject other;

}
